package com.feicheng.persistence.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.feicheng.persistence.entity.Aroomyyjl;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 房间预约记录 Mapper 接口
 * </p>
 *
 * @author cailongyang
 * @since 2025-04-02
 */

public interface AroomyyjlMapper extends BaseMapper<Aroomyyjl> {

    List<JSONObject> getYyjlWithMaxDtet(@Param(Constants.WRAPPER) Wrapper wrapper);

    List<JSONObject> getYyjlWithMinDtet(@Param(Constants.WRAPPER) Wrapper wrapper);

    List<JSONObject> getYyjlWithJl(@Param(Constants.WRAPPER) Wrapper wrapper);

    /**
     * 预约记录分页查询  jinjingyi
     */
    IPage<JSONObject> getYyjlWithJlByPage(IPage page, @Param(Constants.WRAPPER) Wrapper wrapper);

    /**
     * 门店预约记录营业金额  wumingxia
     */
    JSONObject getYyjlAmoutGroupByTflg();


}
